package LuoGu;
import java.util.*;
public class P1618 {
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        boolean isOK=false;
        int A=sc.nextInt();
        int B=sc.nextInt();
        int C=sc.nextInt();

        if(A==0){
            System.out.println("No!!!");
        }else{
            loop:for(int i=1;i<=9;i++){
                for(int j=1;j<=9;j++){
                    for(int k=1;k<=9;k++){
                        if(i!=j&&j!=k&&i!=k){
                            int tmp=i*100+j*10+k;
                            if(tmp>345){
                                break loop;
                            }

                            int[] arr=new int[9];
                            boolean ok=true;
                            if(tmp%A!=0){
                                break loop;
                            }
                            int tmpB=(tmp/A)*B;
                            int tmpC=(tmp/A)*C;
                            HashSet<Integer> set=new HashSet<>();

                            arr[0]=tmp/100;
                            arr[1]=tmp/10%10;
                            arr[2]=tmp%10;

                            arr[3]=tmpB/100;
                            arr[4]=tmpB/10%10;
                            arr[5]=tmpB%10;

                            arr[6]=tmpC/100;
                            arr[7]=tmpC/10%10;
                            arr[8]=tmpC%10;
                            for (int i1 = 0; i1 < 9; i1++) {
                                if(!set.contains(arr[i1])&&arr[i1]!=0){
                                    set.add(arr[i1]);
                                }else{
                                    ok=false;
                                    break;
                                }
                            }
                            int[] arr1=new int[213];
                            if(ok&&tmp<=999&&tmpB<=999&&tmpC<=999){
                                System.out.println(tmp+" "+tmpB+" "+tmpC);
                                isOK=true;
                            }
                        }
                    }
                }
            }
            if(!isOK){
                System.out.println("No!!!");
            }

        }


    }
}
